<?php
/** 
 * @author Maodo DIOP <dmaodo@gmail.com>
 * 
 * 
 */
class POO_Paging {
	/**
	 * 
	 * @param  Zend_Paginator_Adapter_Interface|Zend_Paginator_AdapterAggregate $adapter
      
	 */
	public function paginate($adapter, $itemPerPage, $defaultPage = 1, $currentPage) {
		$paginator = Zend_Paginator::factory ( $adapter );
		$paginator->setItemCountPerPage ( $itemPerPage )
		->setCurrentPageNumber ( $currentPage );
		return $paginator;
	}
	
	

}

?>